﻿body{
    background: #f5f5f5;
}
/*主体盒子*/
.ls_layout{
    width: 100%;
    max-width: 640px;/*设计图的原因  不然它放大*/
    min-width: 300px;/*为了更好的布局*/
    margin: 0 auto;
    /*position: relative;*/
}

/*头部搜索*/
.ls_header{
    position: fixed;/*是以  window 最外层容器 计算*/
    left: 0;
    top: 0;
    height: 40px;
    width: 100%;
    z-index: 1000;
}
.ls_header > .ls_header_box{
    width: 100%;
    max-width: 640px;/*设计图的原因  不然它放大*/
    min-width: 300px;/*为了更好的布局*/
    margin: 0 auto;
    background: rgba(201,21,35,0);
    height: 40px;
    position: relative;
}

/*.ls_header > .ls_header_box > .icon_logo{*/
    /*width: 60px;*/
    /*height: 36px;*/
    /*position: absolute;*/
    /*background-position: 0 -103px;*/
    /*top: 4px;*/
    /*left: 10px;*/
/*}*/

.ls_header > .ls_header_box > .icon_logooo{
    width: 90px;
    height: 36px;
    color: #ffffff;
    line-height: 36px;
    text-align: center;
    background: none;
    position: absolute;
    top: 4px;
    left: 10px;
    font-size: 15px;
}

.ls_header > .ls_header_box > .login{
    width: 50px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #fff;
    position: absolute;
    right: 0;
    top: 0;
    font-size: 15px;
}
.ls_header > .ls_header_box > form{
    width: 100%;
    padding-left: 105px;
    padding-right: 50px;
    height: 40px;
    /*position: relative;*/
}
.ls_header > .ls_header_box > form > input{
    width: 100%;
    height: 30px;
    border-radius: 15px;
    margin-top: 5px;
    padding-left: 30px;
}
.ls_header > .ls_header_box > form > .icon_search{
    height: 20px;
    width:20px;
    position: absolute;
    background-position: -60px -109px;
    top: 10px;
    left: 115px;
}
/*轮播图*/
.ls_banner{
    width: 100%;
    position: relative;
    overflow: hidden;
}
.ls_banner > ul:first-child{
    width: 1000%;
    -webkit-transform:translateX(-10%);/*尽可能做webkit内核的兼容*/
    transform: translateX(-10%);
}
.ls_banner > ul:first-child > li{
    width: 10%;
    float: left;
}
.ls_banner > ul:first-child > li > a{
    width: 100%;
    display: block;
}
.ls_banner > ul:first-child > li > a > img{
    width: 100%;
    /*
    font-size 0
    block
    vertical-align: middle;
    */
    display: block;
}
.ls_banner > ul:last-child{
    width: 88px;
    height: 12px;
    position: absolute;
    bottom: 8px;
    left: 50%;
    margin-left:-44px;
}
.ls_banner > ul:last-child > li{
    width: 12px;
    height: 12px;
    float: left;
    border-radius: 6px;
    border: 1px solid #fff;
    margin-left: 10px;
}
.ls_banner > ul:last-child > li.now{
    background: #fff;
}
.ls_banner > ul:last-child > li:nth-child(1){
    margin-left: 0;
}
/*导航栏模块*/
.ls_nav{
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}
.ls_nav > ul{
    width: 100%;
    padding: 10px 0;
}
.ls_nav > ul > li{
    width: 25%;
    float: left;
}
.ls_nav > ul > li > a{
    display: block;
}
.ls_nav > ul > li > a > img{
    width: 40px;
    height: 40px;
    display: block;
    margin: 0 auto;
}
.ls_nav > ul > li > a > p{
    text-align: center;
    color: #666;
    font-size: 12px;
    padding: 6px 0;
}
/*商品主盒子*/
.ls_product{
    padding: 0 5px;
}
.ls_product > .product_box{
    width: 100%;
    background: #fff;
    margin-top: 10px;
    box-shadow:0 0 1px #e0e0e0;
}
.ls_product > .product_box > .product_box_tit{
    height: 32px;
    line-height: 32px;
    border-bottom: 1px solid #e0e0e0;
}
.ls_product > .product_box > .product_box_tit.no_border{
    border-bottom: none;
}
.ls_product > .product_box > .product_box_tit > h3{
    font-weight: normal;
    font-size: 15px;
    padding-left: 20px;
    position: relative;
    color: #666;
}
.ls_product > .product_box > .product_box_tit > h3::before{
    /*
        display block  position: absolute  float left
    */
    content:"";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 3px;
    height: 12px;
    background: #d8505c;
}

/*掌上秒杀 second kill*/
.ls_sk{ }
.ls_sk .sk_icon{
    background: url("../images/seckill-icon.png") no-repeat;
    background-size: 16px 20px;
    width: 16px;
    height: 20px;
    float: left;
    margin-top: 6px;
}
.ls_sk .sk_name{
    color: #d8505c;
    font-size: 15px;
    float: left;
}
.ls_sk .sk_time{
    float: left;
    margin-top:8px;
}
.ls_sk .sk_time > span{
    float: left;
    width: 15px;
    height: 15px;
    line-height: 15px;
    text-align: center;
    background: #333;
    color: #fff;
    margin-left: 3px;
}
.ls_sk .sk_time > span:nth-child(3n){
    background: #fff;
    color: #333;
    width: 5px;
}

.ls_sk .product_box_con > ul{
    width: 100%;
    font-size: 12px;
    padding: 10px 0;
}
.ls_sk .product_box_con > ul > li{
    width: 33.333%;
    float: left;
    text-align: center;
}
.ls_sk .product_box_con > ul > li >a{
    display: block;
    width: 100%;
    border-right: 1px solid #e0e0e0;
}
.ls_sk .product_box_con > ul > li:last-child > a{
    border-right: 0;
}
.ls_sk .product_box_con > ul > li >a > img{
    width: 64%;
    display: block;
    margin: 0 auto;
}
/*
E:first-of-type  选择E同类型的同级的  第一个元素
E:last-of-type  选择E同类型的同级的  最后个元素
E:nth-of-type(n)  选择E同类型的同级的  第n个元素
*/
.ls_sk .product_box_con > ul > li >p:first-of-type{
    color: #d8505c;
    padding-top: 5px;
}
.ls_sk .product_box_con > ul > li >p:last-of-type{
    text-decoration: line-through;/*删除线*/
    color: #666;
    padding-top: 5px;
}

/*组合样式*/
.w_50{
    width: 50%;
    display: block;
}
.w_50 > img{
    display: block;
    width: 100%;
}

.b_left{
    border-left: 1px solid #e0e0e0;
}
.b_right{
    border-right: 1px solid #e0e0e0;
}
.b_bottom{
    border-bottom: 1px solid #e0e0e0;
}

footer {
    margin-top: 20px;
    border-top: 2px solid #c0c0c0;
    padding: 0 10px;
    width: 100%;
}
footer>ul {
    width: 100%;
    padding-top: 10px;
}
footer>ul>li{
    width: 25%;
    text-align: center;
    float: left;
    list-style: none;
}
footer>p{
    padding-top: 10px;
    width: 100%;
    text-align: center;
}

/*底部固定栏*/
.BottomMenu {
    color: #f08519;
}
.BottomMenu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 2rem;
    padding-top: .1rem;
    line-height: .9rem;
    background: #f9f8f6;
    border-top: 1px solid #f0f0f0;
    opacity: .99;
    font-size: .4rem;
    z-index: 10;
}
ul, ol {
    list-style: none;
}